<?php get_header(); 
echo 'search - buituht';
?>
<div class="cy-content">
   <?php get_sidebar(); ?>
   <div class="cy-content-center">
        <?php locate_template('block/block-search.php', true); ?>
        <div class="clearfix"></div>
       <div class="cy-center-title"><span>Tìm kiếm</span></div>
       <div class="cy-center-ct">
    	          <h4>Từ khóa : <?php $temp_search_query = get_search_query(); echo $temp_search_query; ?></h4><br />
                  <?php 
                  global $wp_query;
    			$args = array_merge( $wp_query->query, array( 'post_type' => 'san_pham' ) );
    			query_posts( $args );
                  //query_posts('meta_key=_mf_write_panel_id&meta_value=1');
                  if ( have_posts() ) while ( have_posts() ) : the_post();?>
                  <ul>
                  <?php if (is_search() && ($post->post_type=='page')) continue; ?>
                  <li class="search-item"><a href="<?php the_permalink(); ?>">
                  <?php the_title(); ?>
                  </a></li>
                  <?php endwhile; else echo "<p>» Không tìm thấy kết quả nào</p>"; ?>
                  </ul>
                  <?php wp_reset_query();?>  
        </div><!--cy-center-ct-->
    </div><!--cy-content-center-->
</div><!--cy-content-->
<?php get_footer(); ?>